package com.zy.controller;

import java.io.IOException;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.zy.service.PictureService;

@Controller
public class PictureController {
	@Autowired
	private PictureService pictureService;
	
	@ResponseBody
	@RequestMapping("/pic/upload")
	public Map<String,Object> uploadFile(MultipartFile uploadFile) throws IOException{
		return pictureService.upLoadFile(uploadFile);
	}
}
